<h2>Editing task</h2>

<% form_for [@project,@task,@assignment] do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label "Assignment name" %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :start_time %><br />
    <%= f.datetime_select :start_time %>
  </p>
  <p>
    <%= f.label :due_by %><br />
    <%= f.datetime_select :due_by %>
  </p>
  <p>
    <%= f.label "Description" %><br />
    <%= f.text_area :desc %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

<%= link_to 'Show', project_task_assignment_path(@project, @task, @assignment) %> |
<%= link_to 'Back', project_task_path(@project, @task) %>
